package cn.hd.service;

import cn.hd.entity.Address;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AddressService {
    //添加
    public  int addAddress(Address address);
    public  int addUserAddressUser(long uid,long aid);

    //删除
    public int deleteAddress(long aid);
    public int deleteAddressUser(long aid,long uid);

    //修改
    public int updateAddress(Address address);

    //通过uid查询地址
    public List<Address> selectuidAddress(long uid);

    //根据aid查询
    public Address selectByAid(long aid);
    //根据bid查询
    public Address selectByBid(long bid);


}
